﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.WorkFlow_TableNames;
using LeadThing.AbpZeroTemplate.EntityFramework;

namespace LeadThing.AbpZeroTemplate.WorkFlow_TableNames.EntityMapper.WorkFlow_TableNames
{

    /// <summary>
    /// 业务审批与流程关联表的数据配置文件
    /// </summary>
    public class WorkFlow_TableNameCfg : EntityTypeConfiguration<WorkFlow_TableName>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public WorkFlow_TableNameCfg()
        {
            ToTable("WorkFlow_TableName", AbpZeroTemplateConsts.SchemaName.Basic);



            // 业务表
            Property(a => a.TableName).HasMaxLength(50);
            // 关联表单的url地址
            Property(a => a.UrlDetail).HasMaxLength(200);
            // 关联表的编辑页面URL
            Property(a => a.UrlEdit).HasMaxLength(200);
            // 映射的字段名
            Property(a => a.ColumnName).HasMaxLength(50);
            // 映射的主键字段名
            Property(a => a.FieldKey).HasMaxLength(50);
        }
    }
}